package com.gxa.modules.model.entity.fee;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 患者表（就诊人表）
 * </p>
 *
 * @author gxa
 * @since 2022-11-12 11:12:58
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_patient")
@ApiModel(value = "Patient对象", description = "患者表（就诊人表）")
public class Patient implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("患者id(就诊人id)")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("患者的姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty("登录用户的id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("0:本人1：子女2：夫妻3：父母4：朋友")
    @TableField("relation_type")
    private Integer relationType;

    @ApiModelProperty("证件类型：0身份证，1护照，2港澳通行证")
    @TableField("idcard_type")
    private Integer idcardType;

    @ApiModelProperty("证件号码")
    @TableField("card_num")
    private String cardNum;

    @ApiModelProperty("性别")
    @TableField("sex")
    private String sex;

    @ApiModelProperty("年龄")
    @TableField("age")
    private Integer age;

    @ApiModelProperty("就诊卡号（后台自动为就诊人生成卡号）")
    @TableField("visit_num")
    private String visitNum;

    @ApiModelProperty("就诊人电话号码")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("患者的头像地址")
    @TableField("image")
    private String image;

    @ApiModelProperty("微信昵称（登录用户的）")
    @TableField("weixin_nickname")
    private String weixinNickname;

    @ApiModelProperty("就诊人地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("设为默认就诊人（0：默认，1：非默认）")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("逻辑删除标志")
    @TableField("is_delete")

    @TableLogic(value = "0" ,delval ="1")
    private Integer isDelete;

    @ApiModelProperty("余额")
    @TableField("money")
    private Double money;


}
